
<div id="InputForm">
<p>Sök efter annvändare på deras mail</p>
<hr />
	
	<?php echo form_open('admin/admin/searchUsers');?>
	
	<ul>
		<li>
			<label>Annvändarens email</label>
			<div>
				<?php echo form_input(array('id'=>'mail','name'=>'mail','value'=> set_value('username'))); ?>
			</div>
			<?php echo form_submit(array('id'=>'search'),'Sök'); ?>
		</li>		

	</ul>
	<?php echo form_close();?>
	
</div>

<div>
<ul>

<?php

	foreach($users as $row)
	{
		echo "<li>";
				 echo form_open('admin/admin/getuserinfo/' . $row['ID']);
				 echo '<div id="bookings" align="center"  style="height:90px; width:500px; border-style:solid" >';
				 echo "<b>Annvändarnamn:  </b>";	
				 echo $row['username'];
			 	 echo "  ";
				 
				 echo "<b>Förnamn:  </b>";	
				 echo $row['Fnamn'];
			 	 echo "  ";
				 
				 echo "<b>Efternamn:  </b>";	
				 echo $row['Enamn'];
			 	 echo "  ";
				 echo "<div />";
				 
				 echo "<b>Email:  </b>";	
				 echo $row['Email'];
				 
				 echo "  <br/>";	
				
				 echo form_submit(array('id'=>'btnChange', 'name'=>'btnChange'),'Ändra'); 
				 echo form_submit(array('id'=>'btnChangePassword', 'name'=>'btnChangePassword'),'Ändra lösenord'); 
				 
				 echo form_Close();
			 	 echo "  <br/>";	
		echo "</li>";
	}

?>




</ul>
</div>